3.123 \(\int x \log (d (e+f \sqrt{x})) (a+b \log (c x^n))^2 \, dx\)

Optimal. Leaf size=598 \[ -\frac{2 b e^4 n \text{PolyLog}\left (2,-\frac{f \sqrt{x}}{e}\right ) \left (a+b \log \left (c x^n\right )\right )}{f^4}-\frac{b^2 e^4 n^2 \text{PolyLog}\left (2,\frac{f \sqrt{x}}{e}+1\right )}{f^4}+\frac{4 b^2 e^4 n^2 \text{PolyLog}\left (3,-\frac{f \sqrt{x}}{e}\right )}{f^4}+\frac{1}{2} x^2 \log \left (d \left (e+f \sqrt{x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )^2-\frac{1}{2} b n x^2 \log \left (d \left (e+f \sqrt{x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )-\frac{e^4 \log \left (\frac{f \sqrt{x}}{e}+1\right ) \left (a+b \log \left (c x^n\right )\right )^2}{2 f^4}+\frac{b e^4 n \log \left (e+f \sqrt{x}\right ) \left (a+b \log \left (c x^n\right )\right )}{2 f^4}+\frac{e^3 \sqrt{x} \left (a+b \log \left (c x^n\right )\right )^2}{2 f^3}-\frac{5 b e^3 n \sqrt{x} \left (a+b \log \left (c x^n\right )\right )}{2 f^3}-\frac{e^2 x \left (a+b \log \left (c x^n\right )\right )^2}{4 f^2}+\frac{b e^2 n x \left (a+b \log \left (c x^n\right )\right )}{4 f^2}+\frac{e x^{3/2} \left (a+b \log \left (c x^n\right )\right )^2}{6 f}-\frac{7 b e n x^{3/2} \left (a+b \log \left (c x^n\right )\right )}{18 f}-\frac{1}{8} x^2 \left (a+b \log \left (c x^n\right )\right )^2+\frac{1}{4} b n x^2 \left (a+b \log \left (c x^n\right )\right )+\frac{a b e^2 n x}{2 f^2}+\frac{b^2 e^2 n x \log \left (c x^n\right )}{2 f^2}+\frac{1}{4} b^2 n^2 x^2 \log \left (d \left (e+f \sqrt{x}\right )\right )+\frac{21 b^2 e^3 n^2 \sqrt{x}}{4 f^3}-\frac{7 b^2 e^2 n^2 x}{8 f^2}-\frac{b^2 e^4 n^2 \log \left (e+f \sqrt{x}\right )}{4 f^4}-\frac{b^2 e^4 n^2 \log \left (e+f \sqrt{x}\right ) \log \left (-\frac{f \sqrt{x}}{e}\right )}{f^4}+\frac{37 b^2 e n^2 x^{3/2}}{108 f}-\frac{3}{16} b^2 n^2 x^2 \]

[Out]

(21*b^2*e^3*n^2*Sqrt[x])/(4*f^3) + (a*b*e^2*n*x)/(2*f^2) - (7*b^2*e^2*n^2*x)/(8*f^2) + (37*b^2*e*n^2*x^(3/2))/
(108*f) - (3*b^2*n^2*x^2)/16 - (b^2*e^4*n^2*Log[e + f*Sqrt[x]])/(4*f^4) + (b^2*n^2*x^2*Log[d*(e + f*Sqrt[x])])
/4 - (b^2*e^4*n^2*Log[e + f*Sqrt[x]]*Log[-((f*Sqrt[x])/e)])/f^4 + (b^2*e^2*n*x*Log[c*x^n])/(2*f^2) - (5*b*e^3*
n*Sqrt[x]*(a + b*Log[c*x^n]))/(2*f^3) + (b*e^2*n*x*(a + b*Log[c*x^n]))/(4*f^2) - (7*b*e*n*x^(3/2)*(a + b*Log[c
*x^n]))/(18*f) + (b*n*x^2*(a + b*Log[c*x^n]))/4 + (b*e^4*n*Log[e + f*Sqrt[x]]*(a + b*Log[c*x^n]))/(2*f^4) - (b
*n*x^2*Log[d*(e + f*Sqrt[x])]*(a + b*Log[c*x^n]))/2 + (e^3*Sqrt[x]*(a + b*Log[c*x^n])^2)/(2*f^3) - (e^2*x*(a +
 b*Log[c*x^n])^2)/(4*f^2) + (e*x^(3/2)*(a + b*Log[c*x^n])^2)/(6*f) - (x^2*(a + b*Log[c*x^n])^2)/8 + (x^2*Log[d
*(e + f*Sqrt[x])]*(a + b*Log[c*x^n])^2)/2 - (e^4*Log[1 + (f*Sqrt[x])/e]*(a + b*Log[c*x^n])^2)/(2*f^4) - (b^2*e
^4*n^2*PolyLog[2, 1 + (f*Sqrt[x])/e])/f^4 - (2*b*e^4*n*(a + b*Log[c*x^n])*PolyLog[2, -((f*Sqrt[x])/e)])/f^4 +
(4*b^2*e^4*n^2*PolyLog[3, -((f*Sqrt[x])/e)])/f^4

________________________________________________________________________________________

Rubi [A]  time = 0.656244, antiderivative size = 598, normalized size of antiderivative = 1., number of steps used = 20, number of rules used = 13, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.5, Rules used = {2454, 2395, 43, 2377, 2295, 2304, 2375, 2337, 2374, 6589, 2376, 2394, 2315} \[ -\frac{2 b e^4 n \text{PolyLog}\left (2,-\frac{f \sqrt{x}}{e}\right ) \left (a+b \log \left (c x^n\right )\right )}{f^4}-\frac{b^2 e^4 n^2 \text{PolyLog}\left (2,\frac{f \sqrt{x}}{e}+1\right )}{f^4}+\frac{4 b^2 e^4 n^2 \text{PolyLog}\left (3,-\frac{f \sqrt{x}}{e}\right )}{f^4}+\frac{1}{2} x^2 \log \left (d \left (e+f \sqrt{x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )^2-\frac{1}{2} b n x^2 \log \left (d \left (e+f \sqrt{x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )-\frac{e^4 \log \left (\frac{f \sqrt{x}}{e}+1\right ) \left (a+b \log \left (c x^n\right )\right )^2}{2 f^4}+\frac{b e^4 n \log \left (e+f \sqrt{x}\right ) \left (a+b \log \left (c x^n\right )\right )}{2 f^4}+\frac{e^3 \sqrt{x} \left (a+b \log \left (c x^n\right )\right )^2}{2 f^3}-\frac{5 b e^3 n \sqrt{x} \left (a+b \log \left (c x^n\right )\right )}{2 f^3}-\frac{e^2 x \left (a+b \log \left (c x^n\right )\right )^2}{4 f^2}+\frac{b e^2 n x \left (a+b \log \left (c x^n\right )\right )}{4 f^2}+\frac{e x^{3/2} \left (a+b \log \left (c x^n\right )\right )^2}{6 f}-\frac{7 b e n x^{3/2} \left (a+b \log \left (c x^n\right )\right )}{18 f}-\frac{1}{8} x^2 \left (a+b \log \left (c x^n\right )\right )^2+\frac{1}{4} b n x^2 \left (a+b \log \left (c x^n\right )\right )+\frac{a b e^2 n x}{2 f^2}+\frac{b^2 e^2 n x \log \left (c x^n\right )}{2 f^2}+\frac{1}{4} b^2 n^2 x^2 \log \left (d \left (e+f \sqrt{x}\right )\right )+\frac{21 b^2 e^3 n^2 \sqrt{x}}{4 f^3}-\frac{7 b^2 e^2 n^2 x}{8 f^2}-\frac{b^2 e^4 n^2 \log \left (e+f \sqrt{x}\right )}{4 f^4}-\frac{b^2 e^4 n^2 \log \left (e+f \sqrt{x}\right ) \log \left (-\frac{f \sqrt{x}}{e}\right )}{f^4}+\frac{37 b^2 e n^2 x^{3/2}}{108 f}-\frac{3}{16} b^2 n^2 x^2 \]

Antiderivative was successfully verified.

[In]

Int[x*Log[d*(e + f*Sqrt[x])]*(a + b*Log[c*x^n])^2,x]

[Out]

(21*b^2*e^3*n^2*Sqrt[x])/(4*f^3) + (a*b*e^2*n*x)/(2*f^2) - (7*b^2*e^2*n^2*x)/(8*f^2) + (37*b^2*e*n^2*x^(3/2))/
(108*f) - (3*b^2*n^2*x^2)/16 - (b^2*e^4*n^2*Log[e + f*Sqrt[x]])/(4*f^4) + (b^2*n^2*x^2*Log[d*(e + f*Sqrt[x])])
/4 - (b^2*e^4*n^2*Log[e + f*Sqrt[x]]*Log[-((f*Sqrt[x])/e)])/f^4 + (b^2*e^2*n*x*Log[c*x^n])/(2*f^2) - (5*b*e^3*
n*Sqrt[x]*(a + b*Log[c*x^n]))/(2*f^3) + (b*e^2*n*x*(a + b*Log[c*x^n]))/(4*f^2) - (7*b*e*n*x^(3/2)*(a + b*Log[c
*x^n]))/(18*f) + (b*n*x^2*(a + b*Log[c*x^n]))/4 + (b*e^4*n*Log[e + f*Sqrt[x]]*(a + b*Log[c*x^n]))/(2*f^4) - (b
*n*x^2*Log[d*(e + f*Sqrt[x])]*(a + b*Log[c*x^n]))/2 + (e^3*Sqrt[x]*(a + b*Log[c*x^n])^2)/(2*f^3) - (e^2*x*(a +
 b*Log[c*x^n])^2)/(4*f^2) + (e*x^(3/2)*(a + b*Log[c*x^n])^2)/(6*f) - (x^2*(a + b*Log[c*x^n])^2)/8 + (x^2*Log[d
*(e + f*Sqrt[x])]*(a + b*Log[c*x^n])^2)/2 - (e^4*Log[1 + (f*Sqrt[x])/e]*(a + b*Log[c*x^n])^2)/(2*f^4) - (b^2*e
^4*n^2*PolyLog[2, 1 + (f*Sqrt[x])/e])/f^4 - (2*b*e^4*n*(a + b*Log[c*x^n])*PolyLog[2, -((f*Sqrt[x])/e)])/f^4 +
(4*b^2*e^4*n^2*PolyLog[3, -((f*Sqrt[x])/e)])/f^4

Rule 2454

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_)^(n_))^(p_.)]*(b_.))^(q_.)*(x_)^(m_.), x_Symbol] :> Dist[1/n, Subst[I
nt[x^(Simplify[(m + 1)/n] - 1)*(a + b*Log[c*(d + e*x)^p])^q, x], x, x^n], x] /; FreeQ[{a, b, c, d, e, m, n, p,
 q}, x] && IntegerQ[Simplify[(m + 1)/n]] && (GtQ[(m + 1)/n, 0] || IGtQ[q, 0]) &&  !(EqQ[q, 1] && ILtQ[n, 0] &&
 IGtQ[m, 0])

Rule 2395

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))*((f_.) + (g_.)*(x_))^(q_.), x_Symbol] :> Simp[((f + g
*x)^(q + 1)*(a + b*Log[c*(d + e*x)^n]))/(g*(q + 1)), x] - Dist[(b*e*n)/(g*(q + 1)), Int[(f + g*x)^(q + 1)/(d +
 e*x), x], x] /; FreeQ[{a, b, c, d, e, f, g, n, q}, x] && NeQ[e*f - d*g, 0] && NeQ[q, -1]

Rule 43

Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d
*x)^n, x], x] /; FreeQ[{a, b, c, d, n}, x] && NeQ[b*c - a*d, 0] && IGtQ[m, 0] && ( !IntegerQ[n] || (EqQ[c, 0]
&& LeQ[7*m + 4*n + 4, 0]) || LtQ[9*m + 5*(n + 1), 0] || GtQ[m + n + 2, 0])

Rule 2377

Int[Log[(d_.)*((e_) + (f_.)*(x_)^(m_.))]*((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*((g_.)*(x_))^(q_.), x_Sym
bol] :> With[{u = IntHide[(g*x)^q*Log[d*(e + f*x^m)], x]}, Dist[(a + b*Log[c*x^n])^p, u, x] - Dist[b*n*p, Int[
Dist[(a + b*Log[c*x^n])^(p - 1)/x, u, x], x], x]] /; FreeQ[{a, b, c, d, e, f, g, m, n, q}, x] && IGtQ[p, 0] &&
 RationalQ[m] && RationalQ[q] && NeQ[q, -1] && (EqQ[p, 1] || (FractionQ[m] && IntegerQ[(q + 1)/m]) || (IGtQ[q,
 0] && IntegerQ[(q + 1)/m] && EqQ[d*e, 1]))

Rule 2295

Int[Log[(c_.)*(x_)^(n_.)], x_Symbol] :> Simp[x*Log[c*x^n], x] - Simp[n*x, x] /; FreeQ[{c, n}, x]

Rule 2304

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))*((d_.)*(x_))^(m_.), x_Symbol] :> Simp[((d*x)^(m + 1)*(a + b*Log[c*x^
n]))/(d*(m + 1)), x] - Simp[(b*n*(d*x)^(m + 1))/(d*(m + 1)^2), x] /; FreeQ[{a, b, c, d, m, n}, x] && NeQ[m, -1
]

Rule 2375

Int[(Log[(d_.)*((e_) + (f_.)*(x_)^(m_.))^(r_.)]*((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.))/(x_), x_Symbol] :
> Simp[(Log[d*(e + f*x^m)^r]*(a + b*Log[c*x^n])^(p + 1))/(b*n*(p + 1)), x] - Dist[(f*m*r)/(b*n*(p + 1)), Int[(
x^(m - 1)*(a + b*Log[c*x^n])^(p + 1))/(e + f*x^m), x], x] /; FreeQ[{a, b, c, d, e, f, r, m, n}, x] && IGtQ[p,
0] && NeQ[d*e, 1]

Rule 2337

Int[(((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*((f_.)*(x_))^(m_.))/((d_) + (e_.)*(x_)^(r_)), x_Symbol] :> Si
mp[(f^m*Log[1 + (e*x^r)/d]*(a + b*Log[c*x^n])^p)/(e*r), x] - Dist[(b*f^m*n*p)/(e*r), Int[(Log[1 + (e*x^r)/d]*(
a + b*Log[c*x^n])^(p - 1))/x, x], x] /; FreeQ[{a, b, c, d, e, f, m, n, r}, x] && EqQ[m, r - 1] && IGtQ[p, 0] &
& (IntegerQ[m] || GtQ[f, 0]) && NeQ[r, n]

Rule 2374

Int[(Log[(d_.)*((e_) + (f_.)*(x_)^(m_.))]*((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.))/(x_), x_Symbol] :> -Sim
p[(PolyLog[2, -(d*f*x^m)]*(a + b*Log[c*x^n])^p)/m, x] + Dist[(b*n*p)/m, Int[(PolyLog[2, -(d*f*x^m)]*(a + b*Log
[c*x^n])^(p - 1))/x, x], x] /; FreeQ[{a, b, c, d, e, f, m, n}, x] && IGtQ[p, 0] && EqQ[d*e, 1]

Rule 6589

Int[PolyLog[n_, (c_.)*((a_.) + (b_.)*(x_))^(p_.)]/((d_.) + (e_.)*(x_)), x_Symbol] :> Simp[PolyLog[n + 1, c*(a
+ b*x)^p]/(e*p), x] /; FreeQ[{a, b, c, d, e, n, p}, x] && EqQ[b*d, a*e]

Rule 2376

Int[Log[(d_.)*((e_) + (f_.)*(x_)^(m_.))^(r_.)]*((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))*((g_.)*(x_))^(q_.), x_Sym
bol] :> With[{u = IntHide[(g*x)^q*Log[d*(e + f*x^m)^r], x]}, Dist[a + b*Log[c*x^n], u, x] - Dist[b*n, Int[Dist
[1/x, u, x], x], x]] /; FreeQ[{a, b, c, d, e, f, g, r, m, n, q}, x] && (IntegerQ[(q + 1)/m] || (RationalQ[m] &
& RationalQ[q])) && NeQ[q, -1]

Rule 2394

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))/((f_.) + (g_.)*(x_)), x_Symbol] :> Simp[(Log[(e*(f +
g*x))/(e*f - d*g)]*(a + b*Log[c*(d + e*x)^n]))/g, x] - Dist[(b*e*n)/g, Int[Log[(e*(f + g*x))/(e*f - d*g)]/(d +
 e*x), x], x] /; FreeQ[{a, b, c, d, e, f, g, n}, x] && NeQ[e*f - d*g, 0]

Rule 2315

Int[Log[(c_.)*(x_)]/((d_) + (e_.)*(x_)), x_Symbol] :> -Simp[PolyLog[2, 1 - c*x]/e, x] /; FreeQ[{c, d, e}, x] &
& EqQ[e + c*d, 0]

Rubi steps

\begin{align*} \int x \log \left (d \left (e+f \sqrt{x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )^2 \, dx &=\frac{e^3 \sqrt{x} \left (a+b \log \left (c x^n\right )\right )^2}{2 f^3}-\frac{e^2 x \left (a+b \log \left (c x^n\right )\right )^2}{4 f^2}+\frac{e x^{3/2} \left (a+b \log \left (c x^n\right )\right )^2}{6 f}-\frac{1}{8} x^2 \left (a+b \log \left (c x^n\right )\right )^2-\frac{e^4 \log \left (e+f \sqrt{x}\right ) \left (a+b \log \left (c x^n\right )\right )^2}{2 f^4}+\frac{1}{2} x^2 \log \left (d \left (e+f \sqrt{x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )^2-(2 b n) \int \left (-\frac{e^2 \left (a+b \log \left (c x^n\right )\right )}{4 f^2}+\frac{e^3 \left (a+b \log \left (c x^n\right )\right )}{2 f^3 \sqrt{x}}+\frac{e \sqrt{x} \left (a+b \log \left (c x^n\right )\right )}{6 f}-\frac{1}{8} x \left (a+b \log \left (c x^n\right )\right )-\frac{e^4 \log \left (e+f \sqrt{x}\right ) \left (a+b \log \left (c x^n\right )\right )}{2 f^4 x}+\frac{1}{2} x \log \left (d \left (e+f \sqrt{x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )\right ) \, dx\\ &=\frac{e^3 \sqrt{x} \left (a+b \log \left (c x^n\right )\right )^2}{2 f^3}-\frac{e^2 x \left (a+b \log \left (c x^n\right )\right )^2}{4 f^2}+\frac{e x^{3/2} \left (a+b \log \left (c x^n\right )\right )^2}{6 f}-\frac{1}{8} x^2 \left (a+b \log \left (c x^n\right )\right )^2-\frac{e^4 \log \left (e+f \sqrt{x}\right ) \left (a+b \log \left (c x^n\right )\right )^2}{2 f^4}+\frac{1}{2} x^2 \log \left (d \left (e+f \sqrt{x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )^2+\frac{1}{4} (b n) \int x \left (a+b \log \left (c x^n\right )\right ) \, dx-(b n) \int x \log \left (d \left (e+f \sqrt{x}\right )\right ) \left (a+b \log \left (c x^n\right )\right ) \, dx+\frac{\left (b e^4 n\right ) \int \frac{\log \left (e+f \sqrt{x}\right ) \left (a+b \log \left (c x^n\right )\right )}{x} \, dx}{f^4}-\frac{\left (b e^3 n\right ) \int \frac{a+b \log \left (c x^n\right )}{\sqrt{x}} \, dx}{f^3}+\frac{\left (b e^2 n\right ) \int \left (a+b \log \left (c x^n\right )\right ) \, dx}{2 f^2}-\frac{(b e n) \int \sqrt{x} \left (a+b \log \left (c x^n\right )\right ) \, dx}{3 f}\\ &=\frac{4 b^2 e^3 n^2 \sqrt{x}}{f^3}+\frac{a b e^2 n x}{2 f^2}+\frac{4 b^2 e n^2 x^{3/2}}{27 f}-\frac{1}{16} b^2 n^2 x^2-\frac{5 b e^3 n \sqrt{x} \left (a+b \log \left (c x^n\right )\right )}{2 f^3}+\frac{b e^2 n x \left (a+b \log \left (c x^n\right )\right )}{4 f^2}-\frac{7 b e n x^{3/2} \left (a+b \log \left (c x^n\right )\right )}{18 f}+\frac{1}{4} b n x^2 \left (a+b \log \left (c x^n\right )\right )+\frac{b e^4 n \log \left (e+f \sqrt{x}\right ) \left (a+b \log \left (c x^n\right )\right )}{2 f^4}-\frac{1}{2} b n x^2 \log \left (d \left (e+f \sqrt{x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )+\frac{e^3 \sqrt{x} \left (a+b \log \left (c x^n\right )\right )^2}{2 f^3}-\frac{e^2 x \left (a+b \log \left (c x^n\right )\right )^2}{4 f^2}+\frac{e x^{3/2} \left (a+b \log \left (c x^n\right )\right )^2}{6 f}-\frac{1}{8} x^2 \left (a+b \log \left (c x^n\right )\right )^2+\frac{1}{2} x^2 \log \left (d \left (e+f \sqrt{x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )^2-\frac{e^4 \int \frac{\left (a+b \log \left (c x^n\right )\right )^2}{\left (e+f \sqrt{x}\right ) \sqrt{x}} \, dx}{4 f^3}+\frac{\left (b^2 e^2 n\right ) \int \log \left (c x^n\right ) \, dx}{2 f^2}+\left (b^2 n^2\right ) \int \left (-\frac{e^2}{4 f^2}+\frac{e^3}{2 f^3 \sqrt{x}}+\frac{e \sqrt{x}}{6 f}-\frac{x}{8}-\frac{e^4 \log \left (e+f \sqrt{x}\right )}{2 f^4 x}+\frac{1}{2} x \log \left (d \left (e+f \sqrt{x}\right )\right )\right ) \, dx\\ &=\frac{5 b^2 e^3 n^2 \sqrt{x}}{f^3}+\frac{a b e^2 n x}{2 f^2}-\frac{3 b^2 e^2 n^2 x}{4 f^2}+\frac{7 b^2 e n^2 x^{3/2}}{27 f}-\frac{1}{8} b^2 n^2 x^2+\frac{b^2 e^2 n x \log \left (c x^n\right )}{2 f^2}-\frac{5 b e^3 n \sqrt{x} \left (a+b \log \left (c x^n\right )\right )}{2 f^3}+\frac{b e^2 n x \left (a+b \log \left (c x^n\right )\right )}{4 f^2}-\frac{7 b e n x^{3/2} \left (a+b \log \left (c x^n\right )\right )}{18 f}+\frac{1}{4} b n x^2 \left (a+b \log \left (c x^n\right )\right )+\frac{b e^4 n \log \left (e+f \sqrt{x}\right ) \left (a+b \log \left (c x^n\right )\right )}{2 f^4}-\frac{1}{2} b n x^2 \log \left (d \left (e+f \sqrt{x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )+\frac{e^3 \sqrt{x} \left (a+b \log \left (c x^n\right )\right )^2}{2 f^3}-\frac{e^2 x \left (a+b \log \left (c x^n\right )\right )^2}{4 f^2}+\frac{e x^{3/2} \left (a+b \log \left (c x^n\right )\right )^2}{6 f}-\frac{1}{8} x^2 \left (a+b \log \left (c x^n\right )\right )^2+\frac{1}{2} x^2 \log \left (d \left (e+f \sqrt{x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )^2-\frac{e^4 \log \left (1+\frac{f \sqrt{x}}{e}\right ) \left (a+b \log \left (c x^n\right )\right )^2}{2 f^4}+\frac{\left (b e^4 n\right ) \int \frac{\log \left (1+\frac{f \sqrt{x}}{e}\right ) \left (a+b \log \left (c x^n\right )\right )}{x} \, dx}{f^4}+\frac{1}{2} \left (b^2 n^2\right ) \int x \log \left (d \left (e+f \sqrt{x}\right )\right ) \, dx-\frac{\left (b^2 e^4 n^2\right ) \int \frac{\log \left (e+f \sqrt{x}\right )}{x} \, dx}{2 f^4}\\ &=\frac{5 b^2 e^3 n^2 \sqrt{x}}{f^3}+\frac{a b e^2 n x}{2 f^2}-\frac{3 b^2 e^2 n^2 x}{4 f^2}+\frac{7 b^2 e n^2 x^{3/2}}{27 f}-\frac{1}{8} b^2 n^2 x^2+\frac{b^2 e^2 n x \log \left (c x^n\right )}{2 f^2}-\frac{5 b e^3 n \sqrt{x} \left (a+b \log \left (c x^n\right )\right )}{2 f^3}+\frac{b e^2 n x \left (a+b \log \left (c x^n\right )\right )}{4 f^2}-\frac{7 b e n x^{3/2} \left (a+b \log \left (c x^n\right )\right )}{18 f}+\frac{1}{4} b n x^2 \left (a+b \log \left (c x^n\right )\right )+\frac{b e^4 n \log \left (e+f \sqrt{x}\right ) \left (a+b \log \left (c x^n\right )\right )}{2 f^4}-\frac{1}{2} b n x^2 \log \left (d \left (e+f \sqrt{x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )+\frac{e^3 \sqrt{x} \left (a+b \log \left (c x^n\right )\right )^2}{2 f^3}-\frac{e^2 x \left (a+b \log \left (c x^n\right )\right )^2}{4 f^2}+\frac{e x^{3/2} \left (a+b \log \left (c x^n\right )\right )^2}{6 f}-\frac{1}{8} x^2 \left (a+b \log \left (c x^n\right )\right )^2+\frac{1}{2} x^2 \log \left (d \left (e+f \sqrt{x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )^2-\frac{e^4 \log \left (1+\frac{f \sqrt{x}}{e}\right ) \left (a+b \log \left (c x^n\right )\right )^2}{2 f^4}-\frac{2 b e^4 n \left (a+b \log \left (c x^n\right )\right ) \text{Li}_2\left (-\frac{f \sqrt{x}}{e}\right )}{f^4}+\left (b^2 n^2\right ) \operatorname{Subst}\left (\int x^3 \log (d (e+f x)) \, dx,x,\sqrt{x}\right )-\frac{\left (b^2 e^4 n^2\right ) \operatorname{Subst}\left (\int \frac{\log (e+f x)}{x} \, dx,x,\sqrt{x}\right )}{f^4}+\frac{\left (2 b^2 e^4 n^2\right ) \int \frac{\text{Li}_2\left (-\frac{f \sqrt{x}}{e}\right )}{x} \, dx}{f^4}\\ &=\frac{5 b^2 e^3 n^2 \sqrt{x}}{f^3}+\frac{a b e^2 n x}{2 f^2}-\frac{3 b^2 e^2 n^2 x}{4 f^2}+\frac{7 b^2 e n^2 x^{3/2}}{27 f}-\frac{1}{8} b^2 n^2 x^2+\frac{1}{4} b^2 n^2 x^2 \log \left (d \left (e+f \sqrt{x}\right )\right )-\frac{b^2 e^4 n^2 \log \left (e+f \sqrt{x}\right ) \log \left (-\frac{f \sqrt{x}}{e}\right )}{f^4}+\frac{b^2 e^2 n x \log \left (c x^n\right )}{2 f^2}-\frac{5 b e^3 n \sqrt{x} \left (a+b \log \left (c x^n\right )\right )}{2 f^3}+\frac{b e^2 n x \left (a+b \log \left (c x^n\right )\right )}{4 f^2}-\frac{7 b e n x^{3/2} \left (a+b \log \left (c x^n\right )\right )}{18 f}+\frac{1}{4} b n x^2 \left (a+b \log \left (c x^n\right )\right )+\frac{b e^4 n \log \left (e+f \sqrt{x}\right ) \left (a+b \log \left (c x^n\right )\right )}{2 f^4}-\frac{1}{2} b n x^2 \log \left (d \left (e+f \sqrt{x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )+\frac{e^3 \sqrt{x} \left (a+b \log \left (c x^n\right )\right )^2}{2 f^3}-\frac{e^2 x \left (a+b \log \left (c x^n\right )\right )^2}{4 f^2}+\frac{e x^{3/2} \left (a+b \log \left (c x^n\right )\right )^2}{6 f}-\frac{1}{8} x^2 \left (a+b \log \left (c x^n\right )\right )^2+\frac{1}{2} x^2 \log \left (d \left (e+f \sqrt{x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )^2-\frac{e^4 \log \left (1+\frac{f \sqrt{x}}{e}\right ) \left (a+b \log \left (c x^n\right )\right )^2}{2 f^4}-\frac{2 b e^4 n \left (a+b \log \left (c x^n\right )\right ) \text{Li}_2\left (-\frac{f \sqrt{x}}{e}\right )}{f^4}+\frac{4 b^2 e^4 n^2 \text{Li}_3\left (-\frac{f \sqrt{x}}{e}\right )}{f^4}+\frac{\left (b^2 e^4 n^2\right ) \operatorname{Subst}\left (\int \frac{\log \left (-\frac{f x}{e}\right )}{e+f x} \, dx,x,\sqrt{x}\right )}{f^3}-\frac{1}{4} \left (b^2 f n^2\right ) \operatorname{Subst}\left (\int \frac{x^4}{e+f x} \, dx,x,\sqrt{x}\right )\\ &=\frac{5 b^2 e^3 n^2 \sqrt{x}}{f^3}+\frac{a b e^2 n x}{2 f^2}-\frac{3 b^2 e^2 n^2 x}{4 f^2}+\frac{7 b^2 e n^2 x^{3/2}}{27 f}-\frac{1}{8} b^2 n^2 x^2+\frac{1}{4} b^2 n^2 x^2 \log \left (d \left (e+f \sqrt{x}\right )\right )-\frac{b^2 e^4 n^2 \log \left (e+f \sqrt{x}\right ) \log \left (-\frac{f \sqrt{x}}{e}\right )}{f^4}+\frac{b^2 e^2 n x \log \left (c x^n\right )}{2 f^2}-\frac{5 b e^3 n \sqrt{x} \left (a+b \log \left (c x^n\right )\right )}{2 f^3}+\frac{b e^2 n x \left (a+b \log \left (c x^n\right )\right )}{4 f^2}-\frac{7 b e n x^{3/2} \left (a+b \log \left (c x^n\right )\right )}{18 f}+\frac{1}{4} b n x^2 \left (a+b \log \left (c x^n\right )\right )+\frac{b e^4 n \log \left (e+f \sqrt{x}\right ) \left (a+b \log \left (c x^n\right )\right )}{2 f^4}-\frac{1}{2} b n x^2 \log \left (d \left (e+f \sqrt{x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )+\frac{e^3 \sqrt{x} \left (a+b \log \left (c x^n\right )\right )^2}{2 f^3}-\frac{e^2 x \left (a+b \log \left (c x^n\right )\right )^2}{4 f^2}+\frac{e x^{3/2} \left (a+b \log \left (c x^n\right )\right )^2}{6 f}-\frac{1}{8} x^2 \left (a+b \log \left (c x^n\right )\right )^2+\frac{1}{2} x^2 \log \left (d \left (e+f \sqrt{x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )^2-\frac{e^4 \log \left (1+\frac{f \sqrt{x}}{e}\right ) \left (a+b \log \left (c x^n\right )\right )^2}{2 f^4}-\frac{b^2 e^4 n^2 \text{Li}_2\left (1+\frac{f \sqrt{x}}{e}\right )}{f^4}-\frac{2 b e^4 n \left (a+b \log \left (c x^n\right )\right ) \text{Li}_2\left (-\frac{f \sqrt{x}}{e}\right )}{f^4}+\frac{4 b^2 e^4 n^2 \text{Li}_3\left (-\frac{f \sqrt{x}}{e}\right )}{f^4}-\frac{1}{4} \left (b^2 f n^2\right ) \operatorname{Subst}\left (\int \left (-\frac{e^3}{f^4}+\frac{e^2 x}{f^3}-\frac{e x^2}{f^2}+\frac{x^3}{f}+\frac{e^4}{f^4 (e+f x)}\right ) \, dx,x,\sqrt{x}\right )\\ &=\frac{21 b^2 e^3 n^2 \sqrt{x}}{4 f^3}+\frac{a b e^2 n x}{2 f^2}-\frac{7 b^2 e^2 n^2 x}{8 f^2}+\frac{37 b^2 e n^2 x^{3/2}}{108 f}-\frac{3}{16} b^2 n^2 x^2-\frac{b^2 e^4 n^2 \log \left (e+f \sqrt{x}\right )}{4 f^4}+\frac{1}{4} b^2 n^2 x^2 \log \left (d \left (e+f \sqrt{x}\right )\right )-\frac{b^2 e^4 n^2 \log \left (e+f \sqrt{x}\right ) \log \left (-\frac{f \sqrt{x}}{e}\right )}{f^4}+\frac{b^2 e^2 n x \log \left (c x^n\right )}{2 f^2}-\frac{5 b e^3 n \sqrt{x} \left (a+b \log \left (c x^n\right )\right )}{2 f^3}+\frac{b e^2 n x \left (a+b \log \left (c x^n\right )\right )}{4 f^2}-\frac{7 b e n x^{3/2} \left (a+b \log \left (c x^n\right )\right )}{18 f}+\frac{1}{4} b n x^2 \left (a+b \log \left (c x^n\right )\right )+\frac{b e^4 n \log \left (e+f \sqrt{x}\right ) \left (a+b \log \left (c x^n\right )\right )}{2 f^4}-\frac{1}{2} b n x^2 \log \left (d \left (e+f \sqrt{x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )+\frac{e^3 \sqrt{x} \left (a+b \log \left (c x^n\right )\right )^2}{2 f^3}-\frac{e^2 x \left (a+b \log \left (c x^n\right )\right )^2}{4 f^2}+\frac{e x^{3/2} \left (a+b \log \left (c x^n\right )\right )^2}{6 f}-\frac{1}{8} x^2 \left (a+b \log \left (c x^n\right )\right )^2+\frac{1}{2} x^2 \log \left (d \left (e+f \sqrt{x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )^2-\frac{e^4 \log \left (1+\frac{f \sqrt{x}}{e}\right ) \left (a+b \log \left (c x^n\right )\right )^2}{2 f^4}-\frac{b^2 e^4 n^2 \text{Li}_2\left (1+\frac{f \sqrt{x}}{e}\right )}{f^4}-\frac{2 b e^4 n \left (a+b \log \left (c x^n\right )\right ) \text{Li}_2\left (-\frac{f \sqrt{x}}{e}\right )}{f^4}+\frac{4 b^2 e^4 n^2 \text{Li}_3\left (-\frac{f \sqrt{x}}{e}\right )}{f^4}\\ \end{align*}

Mathematica [A]  time = 0.48844, size = 960, normalized size = 1.61 \[ \frac{-216 b^2 n^2 \log \left (e+f \sqrt{x}\right ) \log ^2(x) e^4+216 b^2 n^2 \log \left (\frac{\sqrt{x} f}{e}+1\right ) \log ^2(x) e^4-216 b^2 \log \left (e+f \sqrt{x}\right ) \log ^2\left (c x^n\right ) e^4-216 a^2 \log \left (e+f \sqrt{x}\right ) e^4-108 b^2 n^2 \log \left (e+f \sqrt{x}\right ) e^4+216 a b n \log \left (e+f \sqrt{x}\right ) e^4-216 b^2 n^2 \log \left (e+f \sqrt{x}\right ) \log (x) e^4+432 a b n \log \left (e+f \sqrt{x}\right ) \log (x) e^4+216 b^2 n^2 \log \left (\frac{\sqrt{x} f}{e}+1\right ) \log (x) e^4-432 a b n \log \left (\frac{\sqrt{x} f}{e}+1\right ) \log (x) e^4-432 a b \log \left (e+f \sqrt{x}\right ) \log \left (c x^n\right ) e^4+216 b^2 n \log \left (e+f \sqrt{x}\right ) \log \left (c x^n\right ) e^4+432 b^2 n \log \left (e+f \sqrt{x}\right ) \log (x) \log \left (c x^n\right ) e^4-432 b^2 n \log \left (\frac{\sqrt{x} f}{e}+1\right ) \log (x) \log \left (c x^n\right ) e^4+432 b n \left (-2 a+b n-2 b \log \left (c x^n\right )\right ) \text{PolyLog}\left (2,-\frac{f \sqrt{x}}{e}\right ) e^4+1728 b^2 n^2 \text{PolyLog}\left (3,-\frac{f \sqrt{x}}{e}\right ) e^4+216 b^2 f \sqrt{x} \log ^2\left (c x^n\right ) e^3+432 a b f \sqrt{x} \log \left (c x^n\right ) e^3-1080 b^2 f n \sqrt{x} \log \left (c x^n\right ) e^3+2268 b^2 f n^2 \sqrt{x} e^3+216 a^2 f \sqrt{x} e^3-1080 a b f n \sqrt{x} e^3-108 b^2 f^2 x \log ^2\left (c x^n\right ) e^2-108 a^2 f^2 x e^2-378 b^2 f^2 n^2 x e^2+324 a b f^2 n x e^2-216 a b f^2 x \log \left (c x^n\right ) e^2+324 b^2 f^2 n x \log \left (c x^n\right ) e^2+72 b^2 f^3 x^{3/2} \log ^2\left (c x^n\right ) e+72 a^2 f^3 x^{3/2} e+148 b^2 f^3 n^2 x^{3/2} e-168 a b f^3 n x^{3/2} e+144 a b f^3 x^{3/2} \log \left (c x^n\right ) e-168 b^2 f^3 n x^{3/2} \log \left (c x^n\right ) e-54 a^2 f^4 x^2-81 b^2 f^4 n^2 x^2+108 a b f^4 n x^2-54 b^2 f^4 x^2 \log ^2\left (c x^n\right )+216 b^2 f^4 x^2 \log \left (d \left (e+f \sqrt{x}\right )\right ) \log ^2\left (c x^n\right )+216 a^2 f^4 x^2 \log \left (d \left (e+f \sqrt{x}\right )\right )+108 b^2 f^4 n^2 x^2 \log \left (d \left (e+f \sqrt{x}\right )\right )-216 a b f^4 n x^2 \log \left (d \left (e+f \sqrt{x}\right )\right )-108 a b f^4 x^2 \log \left (c x^n\right )+108 b^2 f^4 n x^2 \log \left (c x^n\right )+432 a b f^4 x^2 \log \left (d \left (e+f \sqrt{x}\right )\right ) \log \left (c x^n\right )-216 b^2 f^4 n x^2 \log \left (d \left (e+f \sqrt{x}\right )\right ) \log \left (c x^n\right )}{432 f^4} \]

Antiderivative was successfully verified.

[In]

Integrate[x*Log[d*(e + f*Sqrt[x])]*(a + b*Log[c*x^n])^2,x]

[Out]

(216*a^2*e^3*f*Sqrt[x] - 1080*a*b*e^3*f*n*Sqrt[x] + 2268*b^2*e^3*f*n^2*Sqrt[x] - 108*a^2*e^2*f^2*x + 324*a*b*e
^2*f^2*n*x - 378*b^2*e^2*f^2*n^2*x + 72*a^2*e*f^3*x^(3/2) - 168*a*b*e*f^3*n*x^(3/2) + 148*b^2*e*f^3*n^2*x^(3/2
) - 54*a^2*f^4*x^2 + 108*a*b*f^4*n*x^2 - 81*b^2*f^4*n^2*x^2 - 216*a^2*e^4*Log[e + f*Sqrt[x]] + 216*a*b*e^4*n*L
og[e + f*Sqrt[x]] - 108*b^2*e^4*n^2*Log[e + f*Sqrt[x]] + 216*a^2*f^4*x^2*Log[d*(e + f*Sqrt[x])] - 216*a*b*f^4*
n*x^2*Log[d*(e + f*Sqrt[x])] + 108*b^2*f^4*n^2*x^2*Log[d*(e + f*Sqrt[x])] + 432*a*b*e^4*n*Log[e + f*Sqrt[x]]*L
og[x] - 216*b^2*e^4*n^2*Log[e + f*Sqrt[x]]*Log[x] - 432*a*b*e^4*n*Log[1 + (f*Sqrt[x])/e]*Log[x] + 216*b^2*e^4*
n^2*Log[1 + (f*Sqrt[x])/e]*Log[x] - 216*b^2*e^4*n^2*Log[e + f*Sqrt[x]]*Log[x]^2 + 216*b^2*e^4*n^2*Log[1 + (f*S
qrt[x])/e]*Log[x]^2 + 432*a*b*e^3*f*Sqrt[x]*Log[c*x^n] - 1080*b^2*e^3*f*n*Sqrt[x]*Log[c*x^n] - 216*a*b*e^2*f^2
*x*Log[c*x^n] + 324*b^2*e^2*f^2*n*x*Log[c*x^n] + 144*a*b*e*f^3*x^(3/2)*Log[c*x^n] - 168*b^2*e*f^3*n*x^(3/2)*Lo
g[c*x^n] - 108*a*b*f^4*x^2*Log[c*x^n] + 108*b^2*f^4*n*x^2*Log[c*x^n] - 432*a*b*e^4*Log[e + f*Sqrt[x]]*Log[c*x^
n] + 216*b^2*e^4*n*Log[e + f*Sqrt[x]]*Log[c*x^n] + 432*a*b*f^4*x^2*Log[d*(e + f*Sqrt[x])]*Log[c*x^n] - 216*b^2
*f^4*n*x^2*Log[d*(e + f*Sqrt[x])]*Log[c*x^n] + 432*b^2*e^4*n*Log[e + f*Sqrt[x]]*Log[x]*Log[c*x^n] - 432*b^2*e^
4*n*Log[1 + (f*Sqrt[x])/e]*Log[x]*Log[c*x^n] + 216*b^2*e^3*f*Sqrt[x]*Log[c*x^n]^2 - 108*b^2*e^2*f^2*x*Log[c*x^
n]^2 + 72*b^2*e*f^3*x^(3/2)*Log[c*x^n]^2 - 54*b^2*f^4*x^2*Log[c*x^n]^2 - 216*b^2*e^4*Log[e + f*Sqrt[x]]*Log[c*
x^n]^2 + 216*b^2*f^4*x^2*Log[d*(e + f*Sqrt[x])]*Log[c*x^n]^2 + 432*b*e^4*n*(-2*a + b*n - 2*b*Log[c*x^n])*PolyL
og[2, -((f*Sqrt[x])/e)] + 1728*b^2*e^4*n^2*PolyLog[3, -((f*Sqrt[x])/e)])/(432*f^4)

________________________________________________________________________________________

Maple [F]  time = 0.025, size = 0, normalized size = 0. \begin{align*} \int x \left ( a+b\ln \left ( c{x}^{n} \right ) \right ) ^{2}\ln \left ( d \left ( e+f\sqrt{x} \right ) \right ) \, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x*(a+b*ln(c*x^n))^2*ln(d*(e+f*x^(1/2))),x)

[Out]

int(x*(a+b*ln(c*x^n))^2*ln(d*(e+f*x^(1/2))),x)

________________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (b \log \left (c x^{n}\right ) + a\right )}^{2} x \log \left ({\left (f \sqrt{x} + e\right )} d\right )\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(a+b*log(c*x^n))^2*log(d*(e+f*x^(1/2))),x, algorithm="maxima")

[Out]

integrate((b*log(c*x^n) + a)^2*x*log((f*sqrt(x) + e)*d), x)

________________________________________________________________________________________

Fricas [F]  time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left ({\left (b^{2} x \log \left (c x^{n}\right )^{2} + 2 \, a b x \log \left (c x^{n}\right ) + a^{2} x\right )} \log \left (d f \sqrt{x} + d e\right ), x\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(a+b*log(c*x^n))^2*log(d*(e+f*x^(1/2))),x, algorithm="fricas")

[Out]

integral((b^2*x*log(c*x^n)^2 + 2*a*b*x*log(c*x^n) + a^2*x)*log(d*f*sqrt(x) + d*e), x)

________________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(a+b*ln(c*x**n))**2*ln(d*(e+f*x**(1/2))),x)

[Out]

Timed out

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (b \log \left (c x^{n}\right ) + a\right )}^{2} x \log \left ({\left (f \sqrt{x} + e\right )} d\right )\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(a+b*log(c*x^n))^2*log(d*(e+f*x^(1/2))),x, algorithm="giac")

[Out]

integrate((b*log(c*x^n) + a)^2*x*log((f*sqrt(x) + e)*d), x)